import Article from "../pages/Article/Article";
import Detail from "../pages/Detail/Detail";
import Reser from "../pages/Reser/Reser";
import Home from "../pages/Home/Home.jsx";
import Wesr from "../pages/Wesr/Wesr";
import { createBrowserRouter } from "react-router-dom";

export const routerlist=[
    
    {
        path:'/article',
        element:<Article/>,
        meta:{title:'全部订单'}
    },
    {
        path:'/detail',
        element:<Detail/>,
        meta:{title:'代付款'}
    },
    {
        path:'/reser',
        element:<Reser/>,
        meta:{title:'待发货'}
    },
    {
        path:'/wesr',
        element:<Wesr/>,
        meta:{title:'待收货'}
    },
]



const router=createBrowserRouter([
    {
        path:'/',
        element:<Home/>,
        children:routerlist
    },
    
])

export default router